﻿using pdt.bll;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class WebForm2 : System.Web.UI.Page
{
    CategroyService categroyService = new CategroyService();
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        int value = int.Parse(DropDownList1.SelectedValue);
        var results = categroyService.btn1(value);

        GridView1.DataSource = results;
        GridView1.DataBind();
    }
}